package cn.edu.nuc.onlinestore.model;

import java.io.File;
import java.io.Serializable;

import cn.edu.nuc.onlinestore.io.SerilizableText;

public class Admin implements Serializable{
 
	private static final long serialVersionUID = 596800757181123832L;
	private String name;
	private String pass;
	
	public Admin(){
	  this.name = "lixiaobo";
	  this.pass = "123";
	  //序列化到本地。 
	  
      String p ="/admin";
	  String filename ="/"+this.getName() + ".dat";
	  SerilizableText.Serializable(p,filename, this);
	}
	public String getName() {
		return name;
	}
	public String getPass() {
		return pass;
	}
}
